vector in component form given two points